cmake_minimum_required(VERSION 3.12)

# ---------------------------------------------------------------------------------------
# General Components
# ---------------------------------------------------------------------------------------
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/component)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/device)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/vision)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/webservice)

if(BUILD_NN)
    add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/nn)
    add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/cuda)
endif()

# ---------------------------------------------------------------------------------------
# Demo
# ---------------------------------------------------------------------------------------
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/demo/demo_face)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/demo/demo_lidar)

# add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/demo/camera)

# ---------------------------------------------------------------------------------------
# Applications
# ---------------------------------------------------------------------------------------
# add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/app/first_version)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/app/mask_detection)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/app/obstacle_avoidance)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/app/orbbec)

if(BUILD_NN)
    add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/app/mask_detection_nn)
endif()